package com.kizuki.json;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

@ToString
@AllArgsConstructor

@Getter
@Setter
@NoArgsConstructor
public class People implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * serialize 是否序列化
     */
    @JSONField(name = "AGE", serialize = false)
    private int age;

    @JSONField(name = "NAME", ordinal = 2)
    private String name;

    @JSONField(name = "MONEY", ordinal = 1)
    private int money;

    @JSONField(name="DATE OF BIRTH", format="dd/MM/yyyy", ordinal = 3)
    private Date dateOfBirth;

}
